/*
 * @Author: 公司-啊彪
 * @Date: 2023-08-03 17:51:01
 * @LastEditTime: 2023-08-05 10:03:27
 * @LastEditors: 公司-啊彪
 * @Description: 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
/**
 * @Author: 陈瑞鹏
 * @Date:   2022-10-14 16:39:49
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-10-14 16:56:18
 */
import dotnev from 'dotenv';

dotnev.config({ path: '.env' });

export default {
    appDomain: '', // 项目域名
    appHost: '127.0.0.1', // 项目IP
    appPort: process.env.PORT, // 项目端口
    cors: { // 跨域
        // origin: ['http://xglxs.26joy.com', 'https://xglxs.26joy.com'], // 指定接收的地址
        origin: '*',
        methods: ['GET', 'POST', 'HEAD', 'OPTIONS'], // 指定接收的请求类型
        alloweHeaders: ['Content-Type', 'Authorization', 'openid', 'time', 'sign']  // 指定header
    },
    redisConfig: { // redis
        host: '127.0.0.1',
        port: 6379,
        db: 0,
    },
    mongoConfig: {
        test_host: 'mongodb://139.129.13.164:27017/guardbattle_test',
        prod: 'guardbattle_formal',
        host: 'mongodb://139.129.13.164:27017/',
        pord: 'mongodb://127.0.0.1:27017/'
    },
    filterApi: [ // 过滤不需要拦截的api或带有相同路径的
    ],
    qhApiQuery: {
        gid: '5149',
        lkey: '32c948095195127c64ff0635f12ef6a4',
        pkey: 'e3264a61b70435d61eb377003ce20d18'
    },
    blackIP: [ // 黑名单IP
    ],
    blackUser: [ // 黑名单ID
    ]
}